package com.home.qh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.home.qh.dao.FeeDao;
import com.home.qh.model.Fee;
import com.home.qh.service.FeeManager;

/**
 * Implementation of RoleManager interface.
 *
 * @author <a href="mailto:dan@getrolling.com">Dan Kibler</a>
 */
@Service("feeManager")
public class FeeManagerImpl extends GenericManagerImpl<Fee, Long> implements FeeManager {
	FeeDao feeDao;

    @Autowired
    public FeeManagerImpl(FeeDao feeDao) {
        super(feeDao);
        this.feeDao = feeDao;
    }

	public List<Fee> getFeeByCodeAndName(String feeCode,
			String feeName) {
		return feeDao.getFeeByCodeAndName(feeCode, feeName);
	}

	public List<Fee> getFeeByFee(Fee fee, String sort, boolean desc, int startResult, int maxResults) {
		return feeDao.getFeeByFee(fee, sort, desc, startResult, maxResults);
	}

}